package me.linkcn.ydtxl.web.resource;

import org.restlet.representation.Representation;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by IntelliJ IDEA.
 * User: cmcc
 * Date: 11-8-17
 * Time: 下午4:47
 */
public class LoginResource extends BaseResource {
    @Override
    protected Representation get() {
        Map dataModel = new HashMap();
        dataModel.put("rootRef", getRequest().getRootRef());
        dataModel.put("serverUri", getServerUri());
        return getHTMLTemplateRepresentation("login.html", dataModel);
    }
}
